import React from 'react';
import { Input } from 'antd';
const { Search } = Input

class index extends React.Component {
    constructor(props) {
        super(props)
        this.state = {}
    }
    onSearch(val) {
        this.props.onSearch(val)
    }

    render() {
        return (
            <Search
                placeholder="input search text"
                onSearch={val => {
                    this.onSearch(val)
                }}
                enterButton />
        )
    }
}
export default index;